package com.twu.biblioteca;

public class Book extends Item{

    private String author;

    public Book (String title, String author) {
        super(title);
        this.author = author;
    }

    public String toString() {
        String bookString = "[book] | ";

        bookString += this.getTitle();
        bookString += " - ";
        bookString += this.author;

        return bookString;
    }

    public String getAuthor() {
        return author;
    }

}
